#!/bin/bash
# 激活 ROS2
source /opt/ros/humble/setup.bash
# 激活工作空间
source ~/ros2_ws/install/setup.bash
# 关键：将 .venv 的 site-packages 加入 PYTHONPATH
export PYTHONPATH="$HOME/ros2_ws/src/detected_objects_3d/.venv/lib/python3.10/site-packages:$PYTHONPATH"
# 运行节点
exec ros2 run detected_objects_3d detect_3d
